package com.blockchain.securewallet.model.db;

import com.blockchain.securewallet.model.db.convert.CoinWalletConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.List;

/**
 * Created by Chain-Cloud on 2018/6/8.
 */

@Entity
public class Account {

    @Id(autoincrement = true)
    private Long id;
    //账户的id
    private String accountId;
    private String payPassword;
    private Long time;
    private String memorizing_words;
    @Convert(columnType = String.class, converter = CoinWalletConverter.class)
    private List<CoinWallet> coinWalletList;
    @Generated(hash = 1561468596)
    public Account(Long id, String accountId, String payPassword, Long time,
            String memorizing_words, List<CoinWallet> coinWalletList) {
        this.id = id;
        this.accountId = accountId;
        this.payPassword = payPassword;
        this.time = time;
        this.memorizing_words = memorizing_words;
        this.coinWalletList = coinWalletList;
    }
    @Generated(hash = 882125521)
    public Account() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getAccountId() {
        return this.accountId;
    }
    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }
    public String getPayPassword() {
        return this.payPassword;
    }
    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }
    public Long getTime() {
        return this.time;
    }
    public void setTime(Long time) {
        this.time = time;
    }
    public String getMemorizing_words() {
        return this.memorizing_words;
    }
    public void setMemorizing_words(String memorizing_words) {
        this.memorizing_words = memorizing_words;
    }
    public List<CoinWallet> getCoinWalletList() {
        return this.coinWalletList;
    }
    public void setCoinWalletList(List<CoinWallet> coinWalletList) {
        this.coinWalletList = coinWalletList;
    }


    


}
